import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import axios from "axios"

// element_ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

// ant_design
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';
Vue.config.productionTip = false;

Vue.use(Antd);

// vant
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);

Vue.config.productionTip = false;
Vue.prototype.$axios = axios;

import Router from "vue-router"
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(error=> error)
}

new Vue({
  router,
  store,
  axios,
  render: h => h(App)
}).$mount('#app')
